﻿@{
    string Type = Model.ToString();
}
@if (Type == "SelectBilling")
{
<table>
    <tr><th colspan="3">Your Billing Address:</th></tr>
    <tr>
        <td class="center"><input type="radio" name="@Type" checked="checked"/></td>
        <td>
            <label>Name: </label>Jason Wang<br/>
            <label>Address: </label>2301 East Lamar Blvd. Suite 140, Arlington, USA<br />
            <label>Zip / Postal Code: </label>35001
        </td>
    </tr>
    <tr>
        <td colspan="2"><a href="#" onclick="$(this).parent().parent().nextAll().toggle();return false;"><img src="/Content/img/icon_more.jpg" /></a></td>
    </tr>
    <tr class="hide">
        <td class="center"><input type="radio" name="@Type"/></td>
        <td class="middle">
            <label>First Name: </label><input type="text" /><br />
            <label>Last Name: </label><input type="text" /><br />
            <label>Address: </label><textarea name="address"></textarea><br />
            <label>Country :</label>@Html.Partial("_SelectCountry")<br />
            <label>State :</label>@Html.Partial("_SelectState")<br />
            <label>Zip/Postal Code :</label><input type="text" />
        </td>
    </tr>
</table>
}
@if (Type == "SelectShipping")
{
<table>
    <tr><th colspan="3">Select Your Shipping Address:</th></tr>
    <tr>
        <td class="center"><input type="radio" name="@Type" checked="checked"/></td>
        <td>
            <label>Name: </label>Jason Wang<br/>
            <label>Address: </label>2301 East Lamar Blvd. Suite 140, Arlington, USA<br />
            <label>Zip / Postal Code: </label>35001
        </td>
    </tr>
    <tr>
        <td colspan="2"><a href="#" onclick="$(this).parent().parent().nextAll().toggle();return false;"><img src="/Content/img/icon_more.jpg" /></a></td>
    </tr>
    <tr class="hide">
        <td class="center"><input type="radio" name="@Type"/></td>
        <td>
            <label>Name: </label>Jason Wang<br/>
            <label>Address: </label>2301 East Lamar Blvd. Suite 140, Arlington, USA<br />
            <label>Zip / Postal Code: </label>35001
        </td>
    </tr>
    <tr class="hide">
        <td class="center"><input type="radio" name="@Type"/></td>
        <td class="middle">
            <label>First Name: </label><input type="text" /><br />
            <label>Last Name: </label><input type="text" /><br />
            <label>Address: </label><textarea name="address"></textarea><br />
            <label>Country :</label>@Html.Partial("_SelectCountry")<br />
            <label>State :</label>@Html.Partial("_SelectState")<br />
            <label>Zip/Postal Code :</label><input type="text" />
        </td>
    </tr>
</table>
}
@if (Type == "EditBilling")
{
<table class="table">
    <tr>
        <th>First Name: </th><td><input type="text" /></td>
    </tr>
    <tr>
        <th>Last Name: </th><td><input type="text" /></td>
    </tr>
    <tr>
        <th>Address: </th><td><textarea name="address"></textarea></td>
    </tr>
    <tr>
        <th>Country :</th><td>@Html.Partial("_SelectCountry")</td>
    </tr>
    <tr>
        <th>State :</th><td>@Html.Partial("_SelectState")</td>
    </tr>
    <tr>
        <th>Zip/Postal Code :</th><td><input type="text" /></td>
    </tr>
    <tr>
        <th></th>
        <td><input type="button" value="Save" /></td>
    </tr>
</table>
}
@if (Type == "EditShipping")
{
<table class="table">
    <tr>
        <td class="center"><input type="radio" name="@Type" checked="checked"/></td>
        <td>
            <label>Name: </label>Jason Wang<br/>
            <label>Address: </label>2301 East Lamar Blvd. Suite 140, Arlington, USA<br />
            <label>Zip / Postal Code: </label>35001
        </td>
        <td class="center"><a href="#">Remove</a></td>
    </tr>
    <tr>
        <td class="center"><input type="radio" name="@Type"/></td>
        <td>
            <label>Name: </label>Jason Wang<br/>
            <label>Address: </label>2301 East Lamar Blvd. Suite 140, Arlington, USA<br />
            <label>Zip / Postal Code: </label>35001
        </td>
        <td class="center"><a href="#">Remove</a></td>
    </tr>
    <tr>
        <td class="center"><input type="radio" name="@Type"/></td>
        <td class="middle">
            <label>First Name: </label><input type="text" /><br />
            <label>Last Name: </label><input type="text" /><br />
            <label>Address: </label><textarea name="address"></textarea><br />
            <label>Country :</label>@Html.Partial("_SelectCountry")<br />
            <label>State :</label>@Html.Partial("_SelectState")<br />
            <label>Zip/Postal Code :</label><input type="text" />
        </td>
        <td></td>
    </tr>
    <tr>
        <td></td>
        <td><input type="button" value="Save" /></td>
        <td></td>
    </tr>
</table>
}
@if (Type == "NonUserBilling")
{
<table>
    <tr><th colspan="3">Input Your Billing Address:</th></tr>
    <tr>
        <td class="center"><input type="radio" name="@Type" checked="checked"/></td>
        <td class="middle">
            <label>First Name: </label><input type="text" /><br />
            <label>Last Name: </label><input type="text" /><br />
            <label>Address: </label><textarea name="address"></textarea><br />
            <label>Country :</label>@Html.Partial("_SelectCountry")<br />
            <label>State :</label>@Html.Partial("_SelectState")<br />
            <label>Zip/Postal Code :</label><input type="text" />
        </td>
    </tr>
</table>
}
@if (Type == "NonUserShipping")
{
<table>
    <tr><th colspan="3">Input Your Shipping Address:</th></tr>
    <tr>
        <td class="center"><input type="radio" name="@Type" checked="checked"/></td>
        <td class="middle">
            <label>First Name: </label><input type="text" /><br />
            <label>Last Name: </label><input type="text" /><br />
            <label>Address: </label><textarea name="address"></textarea><br />
            <label>Country :</label>@Html.Partial("_SelectCountry")<br />
            <label>State :</label>@Html.Partial("_SelectState")<br />
            <label>Zip/Postal Code :</label><input type="text" />
        </td>
    </tr>
</table>
}